package com.coke.im.client.util;

public class StringUtils {

    public static boolean isBlank(String text) {
        return text == null || text.length() == 0 || text.trim().length() == 0;
    }
    
    public static String UUID(int len) {
        return java.util.UUID.randomUUID().toString().replaceAll("-", "").substring(0, len);
    }

    public static boolean equals(String a1, String a2) {

        if (a1 == null || a2 == null) {
            return false;
        }
        return a1.equals(a2);

    }
    
}
